﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SHZY.Business.Entitys.OA
{
    public class RequestDto
    {
        /// <summary>
        /// 流程Id.
        /// </summary>
        public string workflowId { get; set; }

        /// <summary>
        /// 流程标题.
        /// </summary>
        public string requestName { get; set; }

        /// <summary>
        /// 紧急程度.
        /// </summary>
        public string requestLevel { get; set; }

        /// <summary>
        /// 签字意见，默认值流程默认意见若未设置则为空.
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 主表数据.
        /// </summary>
        public List<mainData> mainData { get; set; }

        /// <summary>
        /// 明细表数据.
        /// </summary>
        public List<detailData> detailData { get; set; }

        /// <summary>
        /// 其他参数.
        /// </summary>
        public object otherParams { get; set; }
    }

    public class mainData
    {
        /// <summary>
        /// fieldName.
        /// </summary>
        public string fieldName { get; set; }

        /// <summary>
        /// fieldValue.
        /// </summary>
        public object fieldValue { get; set; }
    }

    public class detailData
    {
        /// <summary>
        /// tableDBName.
        /// </summary>
        public string tableDBName { get; set; }

        /// <summary>
        /// workflowRequestTableRecords.
        /// </summary>
        public List<detailDataChild> workflowRequestTableRecords { get; set; }
    }

    public class detailDataChild
    {
        /// <summary>
        /// recordOrder.
        /// </summary>
        public string recordOrder { get; set; }

        /// <summary>
        /// workflowRequestTableFields.
        /// </summary>
        public object workflowRequestTableFields { get; set; }
    }
}
